package com.luckku.boot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.luckku.boot.model.entity.Goods;
import com.luckku.boot.model.entity.OrderInfo;
import com.luckku.boot.model.vo.CartVo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author luckku
 * @date 2021/12/18
 */

@Repository
public interface OrderMapper extends BaseMapper<OrderInfo> {


    List<CartVo> getOrderGoodsList(String orderId, String storeId);

    Long getCashFlow(Long days);

    Long getStoreCashFlow(Long days, String storeId);

    Goods getBestSelling();

    Long getBestSellingCount();
}
